#include "Torus.h"

using namespace std;


Torus::Torus(Materiais *mat, Texturas *tex, float inner, float outer, int slices, int loops) : Primitiva(mat, tex) {

	this->inner = inner;
	this->outer = outer;
	this->slices = slices;
	this->loops = loops;
}

void Torus::aplica() {
	this->getMaterial()->aplica();
	this->getTextura()->aplica();

	glutSolidTorus(inner,outer,slices,loops);
}